package com.yt.system.dao;

import com.yt.system.domain.Clock;
import com.yt.system.domain.Vacate;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ClockMapper {
    int deleteByPrimaryKey(Integer cid);

    int insert(Clock record);

    int insertSelective(Clock record);

    Clock selectByPrimaryKey(Integer cid);

    int updateByPrimaryKeySelective(Clock record);

    int updateByPrimaryKey(Clock record);

    Clock selectByKeyAndTime(Integer uid);

    List<Clock> selectAllByClock(Clock clock);

    List<Clock> selectAllClockOrName(String name);

    List<Clock> selectAllClockByUid(Integer uid);

    List<Clock> selectAllClockNoLeaveTime();

    List<Clock> selectAllClockByFlag();
}